---@class Battle.BuffTargetHideCondition:Battle.IBuffCondition
local t = Battle.CreateClass("BuffTargetHideCondition",Battle.IBuffCondition)
Battle.BuffTargetHideCondition = t

function t:ctor(buff)
    ---@type Battle.Buffer
    self.buff = buff
end

function t:Check()
    local hit = self.data[1]
    if hit == nil then
        return
    end
    local target = hit.target
    if target == nil then
        logError("[BuffTargetHideCondition]缺少参数比较")
        return false
    end
    return target.effectStateSystem:IsHide()
end
